package com.jfok.server.common;

import org.springframework.web.multipart.commons.CommonsMultipartFile;

import com.jfok.server.hibernate.addition._Addition;
import com.jfok.server.hibernate.addition._AdditionFileType;
import com.jfok.server.hibernate.addition._AdditionOnField;
import com.jfok.server.hibernate.addition._AdditionReduceMode;
import com.jfok.server.hibernate.addition._AdditionType;

public class FileUploadBean extends _Addition {

	private static final long serialVersionUID = 7647897778265424030L;
	private CommonsMultipartFile file;

	private String _t9502___tf_additionTypeId;
	private String _t9503___tf_additionFileTypeId;
	private String _t9506___tf_fieldId;
	private String _t9504___tf_reduceModeId;

	public FileUploadBean() {
		super();

	}

	public CommonsMultipartFile getFile() {
		return file;
	}

	public void setFile(CommonsMultipartFile file) {
		this.file = file;
	}

	public String get_t9502___tf_additionTypeId() {
		return _t9502___tf_additionTypeId;
	}

	public void set_t9502___tf_additionTypeId(String _t9502___tf_additionTypeId) {
		this._t9502___tf_additionTypeId = _t9502___tf_additionTypeId;
		if (this._t9502___tf_additionTypeId != null && this._t9502___tf_additionTypeId.length() > 0) {
			_AdditionType type = new _AdditionType();
			type.setTf_additionTypeId(this._t9502___tf_additionTypeId);
			setTf_AdditionType(type);
		}
	}

	public String get_t9503___tf_additionFileTypeId() {
		return _t9503___tf_additionFileTypeId;
	}

	public void set_t9503___tf_additionFileTypeId(String _t9503___tf_additionFileTypeId) {
		this._t9503___tf_additionFileTypeId = _t9503___tf_additionFileTypeId;
		if (this._t9503___tf_additionFileTypeId != null
				&& this._t9503___tf_additionFileTypeId.length() > 0) {
			_AdditionFileType type = new _AdditionFileType();
			type.setTf_additionFileTypeId(Integer.parseInt(this._t9503___tf_additionFileTypeId));
			setTf_AdditionFileType(type);
		}
	}

	public String get_t9504___tf_reduceModeId() {
		return _t9504___tf_reduceModeId;
	}

	public void set_t9504___tf_reduceModeId(String _t9504___tf_reduceModeId) {
		this._t9504___tf_reduceModeId = _t9504___tf_reduceModeId;
		if (this._t9504___tf_reduceModeId != null && this._t9504___tf_reduceModeId.length() > 0) {
			_AdditionReduceMode mode = new _AdditionReduceMode();
			mode.setTf_reduceModeId(Integer.parseInt(this._t9504___tf_reduceModeId));
			setTf_AdditionReduceMode(mode);
		}
	}
	

	public String get_t9506___tf_fieldId() {
		return _t9506___tf_fieldId;
	}

	public void set_t9506___tf_fieldId(String _t9506___tf_fieldId) {
		this._t9506___tf_fieldId = _t9506___tf_fieldId;

		if (this._t9506___tf_fieldId != null && this._t9506___tf_fieldId.length() > 0) {
			_AdditionOnField field = new _AdditionOnField();
			field.setTf_fieldId(Integer.parseInt(this._t9506___tf_fieldId));
			setTf_AdditionOnField(field);
		}

	}	
	
}
